﻿<%namespace YouHP.Model%>

<%template _Header%>
    <link rel="stylesheet" href="/support/common/jquery-ui.css" type="text/css" />
    <script type="text/javascript" src="/support/common/jquery.js"></script>
    <script type="text/javascript" src="/support/common/ui.core.js"></script>
    <script type="text/javascript" src="/support/common/ui.draggable.js"></script> 
    <script type="text/javascript" src="/support/common/ui.resizable.js"></script> 
    <script type="text/javascript" src="/support/common/ui.dialog.js"></script> 

<div class="layout2-cols2">
	
    <div class="col1">
		<%template _ProfileMenu%>
	</div>
	
<div class="col2">

	    <div class="box">
	    <%template _ProfileHeader%>
	        <div class="content" style="overflow:hidden;margin-top:10px;">
	        <%if FriendDataList.Count==0%>
	                <%if UserData.Id==ProfileData.Id%>
	                <%csharp%>TempUrl = "/PatientAll.aspx";<%/csharp%>
	                <h1 style="text-align:center;">你还没有自己的病友，<a href="{this.GetUrl(TempUrl)}"><font class="quicklink">马上去寻找</font></a></h1>
	                <%else%>
	                  <h1 style="text-align:center;">改用户还未添加病友</h1>
	                <%/if%>

	        <%else%>
	        <div class="friendlist">
	         <table border="0" cellpadding="0" cellspacing="0" width="725">
	      

              <form id="dataform" name="dataform" method="post">
              <input type="hidden" name="fid" id="fid"/>
               <%csharp%>
               foreach(UserInfo item in FriendDataList)
               {
               <%/csharp%>
              <tr>
               <td width="70" align="center">
                    <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.Id;<%/csharp%>
                     <a href="{this.GetUrl(TempUrl)}" target="_blank">
                        <img class="avatar" width="60" height="60" src="{item.Avatar}"/></a>
                     <p><a href="{this.GetUrl(TempUrl)}" target="_blank">{item.UserName}</a></p>
                     
               </td>
               
               <td valign="top"><p>年龄：{item.Age}</p><p>性别：{item.Gender}</p><p>地区：<%if item.Province!=""||item.City!=""%>{item.Province}&nbsp;{item.City}<%else%>未知<%/if%></p></td>
               <td align="right">
               <div class="operation">
               <p><a href="javascript:if({UserData.Id}<=0) alert('请先登录！');else showActionSendingDialog({item.Id});"><font color=Green>发送互动</font></a></p>

               <p><a href="javascript:if({UserData.Id}<=0) alert('请先登录！');else showMsgSendingDialog({item.Id});"><font color=Green>发送消息</font></a></p>
               <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.Id; <%/csharp%>
               <p><a href="{GetUrl(TempUrl)}"><font color=Green>查看他（她）的病情系统</font></a></p>
               

               <%if UserData.Id==ProfileData.Id%>
               
               <p><a href="javascript:if(window.confirm('确定删除该好友？')) _$('fid').value={item.Id};_$('dataform').submit();"><font color="Green">删除好友</font></a></p>
               
               <%/if%>
               </div>
               </td>
                </tr>
               <%csharp%> } <%/csharp%>
                </form>
     
                 </table>
	         </div>
	         <%/if%>
	         </div>
	        </div>
	  <div class="clearBoth"></div>
	    <div class="box">
			<div class="content">
				<div class="pages">
					{PagingString}
				</div>
			</div>
		</div>  
 </div>

	    
</div>
	      <div id="DIALOG"><iframe FRAMEBORDER=0 SCROLLING=NO ></iframe></div>
      <script type="text/javascript" src="/support/Alpha/Js/float.js"></script>
<%template _footer%>